﻿<navigation:Page x:Class="SilverBox.Demo.Logging" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    xmlns:Controls="clr-namespace:SilverBox.Controls;assembly=SilverBox"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
    Title="Logging"
    Style="{StaticResource PageStyle}">

    <Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource SampleDataSource}}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="*" />
                <RowDefinition Height="30" />
                <RowDefinition Height="50" />
                <RowDefinition Height="3*" />
            </Grid.RowDefinitions>

            <TextBlock Grid.Row="0" x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" 
                                   Text="Logging"/>
            
            <TextBlock Grid.Row="1" Style="{StaticResource HeaderTextStyle}" 
                       Text="Enter the text to logging" />
            
            <TextBox Grid.Row="2" x:Name="EntryTextBox" />
            
            <Button Grid.Row="3" Content="Log" Width="75" Click="Button_Click" />
            
            <TextBlock Grid.Row="4" Style="{StaticResource HeaderTextStyle}"
                       Text="Log Viewer" />
            
            <TextBox Grid.Row="5" IsReadOnly="True" Text="{Binding Log}"/>
        </Grid>
    </Grid>

</navigation:Page>